package com.example.demo.common.msg.vo;

import com.example.demo.common.persistence.model.MsgTemplate;

import java.util.Set;

/**
 * ${Description}
 *
 * @author: fuqiangnian
 * created: 17/9/7 下午2:52
 */
public class MessageWrapper {

    private String title;
    private String content;

    private MsgTemplate msgTemplate;
    private Set<EbsMessageReceiver> receivers;
    private Integer senderOrgId;
    private Integer senderUserId;
    private String businessCode;
    private Integer businessId;
    private String messageNodeCode;
    private String messageNodeName;
    private String todoUrl;
    private String accessToken;


    public MessageWrapper(MsgTemplate msgTemplate) {
        this.msgTemplate = msgTemplate;
        this.title = msgTemplate.getTitle();
    }



    public MsgTemplate getMsgTemplate() {
        return msgTemplate;
    }

    public void setMsgTemplate(MsgTemplate msgTemplate) {
        this.msgTemplate = msgTemplate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setReceivers(Set<EbsMessageReceiver> receivers) {
        this.receivers = receivers;
    }

    public Set<EbsMessageReceiver> getReceivers() {
        return receivers;
    }

    public void setSenderOrgId(Integer senderOrgId) {
        this.senderOrgId = senderOrgId;
    }

    public Integer getSenderOrgId() {
        return senderOrgId;
    }

    public void setSenderUserId(Integer senderUserId) {
        this.senderUserId = senderUserId;
    }

    public Integer getSenderUserId() {
        return senderUserId;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getMessageNodeCode() {
        return messageNodeCode;
    }

    public void setMessageNodeCode(String messageNodeCode) {
        this.messageNodeCode = messageNodeCode;
    }

    public String getMessageNodeName() {
        return messageNodeName;
    }

    public void setMessageNodeName(String messageNodeName) {
        this.messageNodeName = messageNodeName;
    }

    public String getTodoUrl() {
        return todoUrl;
    }

    public void setTodoUrl(String todoUrl) {
        this.todoUrl = todoUrl;
    }


    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
